package com.lixinlei.tech.common.factory;

import org.apache.commons.compress.compressors.CompressorStreamFactory;

/**
 * 编解码算法枚举类
 *
 * @author yuwan
 */
public enum CodecTypeEnum {
    /**
     * GZIP算法
     */
    GZ(CompressorStreamFactory.GZIP),
    /**
     * BZIP2算法
     */
    BZIP2(CompressorStreamFactory.BZIP2),
    /**
     * SNAPPY算法
     */
    SNAPPY("SNAPPY"),
    /**
     * LZ4算法
     */
    LZ4(CompressorStreamFactory.LZ4_FRAMED);

    private String type;

    CodecTypeEnum(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }
}
